<link rel="stylesheet" type="text/css" href="__CDN__/assets/layui/css/layui.css" />
<style>
    .layui-input-inline {
        display: flex;
        flex-direction: row;
    }

    .layui-input-inline span {
        margin: 0 20px;
    }

    .layui-input-inline .layui-input {
        height: 32px;
    }

    .layui-laydate .layui-this {
        background-color: RGBA(24, 128, 231, 1) !important;
    }
    
    .hong .n-right {
    position: absolute;
    right: 0;
    top: 4px;
}
.layui-laydate-list.laydate-time-list > li{width:50% !important;}
.layui-laydate-list.laydate-time-list > li:last-child{display:none !important;}
</style>
<script src="__CDN__/assets/layui/layui.all.js"></script>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <!--    <div class="form-group">
        <label for="c-admin_id" class="control-label col-xs-12 col-sm-2">{:__('Admin_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_id" data-rule="required" data-source="auth/admin/index" data-field="nickname" class="form-control selectpage" name="row[admin_id]" type="text" value="{$row.admin_id}">
        </div>
    </div>-->
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name}">
        </div>
    </div>
    <!--    <div class="form-group">
        <label for="c-task_file" class="control-label col-xs-12 col-sm-2">{:__('Task_file')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-task_file" data-rule="required" class="form-control" size2="50" name="row[task_file]" type="text" value="{$row.task_file}" readonly="readonly">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-task_file" class="btn btn-danger plupload" data-input-id="c-task_file" data-multiple="false"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-task_file" class="btn btn-primary fachoose" data-input-id="c-task_file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-task_file"></span>
            </div>
            
        </div>
    </div>
-->
    <div class="form-group">
        <label for="c-saler_group_name" class="control-label col-xs-12 col-sm-2">{:__('客户群组')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-saler_group_name" data-rule="required" class="form-control" name="row[saler_group_name]" type="text" value="{$row.saler_group_name}"
                readonly="readonly">
        </div>
    </div>
    <div class="form-group">
        <label for="c-gateway_ids" class="control-label col-xs-12 col-sm-2">{:__('外呼线路')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-gateway_ids" data-rule="required" data-source="gateway/selectpage" data-field="name" data-multiple="true" class="form-control selectpage"
                name="row[gateway_ids]" type="text" value="{$row.gateway_ids}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-speech_id" class="control-label col-xs-12 col-sm-2">{:__('呼叫话术')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-speech_id" data-rule="required" data-source="speech/speech/index" data-multiple="false" class="form-control selectpage"
                name="row[speech_id]" type="text" value="{$row.speech_id}">
        </div>
    </div>
    <div class="form-group hong">
        <label for="c-speech_id" class="control-label col-xs-12 col-sm-2">{:__('时间范围')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="layui-form">
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input" id="start" placeholder="" autocomplete="off" name="row[start]" value="{$row.start}"
                        data-rule="required"/>
                        <span>至</span>
                        <input type="text" class="layui-input" id="stop" placeholder="" autocomplete="off" name="row[stop]" value="{$row.stop}"
                        data-rule="required"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--<div class="form-group">
        <label for="c-callback_type" class="control-label col-xs-12 col-sm-2">{:__('Callback_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-callback_type" data-rule="required" class="form-control selectpicker" name="row[callback_type]">
                {foreach name="callbackTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.callback_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-sound_id" class="control-label col-xs-12 col-sm-2">{:__('Sound_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sound_id" data-rule="" data-source="sound/index" class="form-control selectpage" name="row[sound_id]" type="text" value="{$row.sound_id}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-admin_ids" class="control-label col-xs-12 col-sm-2">{:__('回叫分机')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_ids" data-rule="" data-source="auth/admin/selectpage" data-field="extension" data-multiple="true" class="form-control selectpage" name="row[admin_ids]" type="text" value="">
        </div>
    </div>-->
    <div class="form-group">
        <label for="c-progress" class="control-label col-xs-12 col-sm-2">{:__('Progress')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-progress" data-rule="required" class="form-control" name="row[progress]" type="text" value="{$row.progress}"
                readonly="readonly">
        </div>
    </div>
    <div class="form-group">
        <label for="c-total_count" class="control-label col-xs-12 col-sm-2">{:__('Total_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-total_count" data-rule="required" class="form-control" name="row[total_count]" type="number" value="{$row.total_count}"
                readonly="readonly">
        </div>
    </div>
    <div class="form-group">
        <label for="c-done_count" class="control-label col-xs-12 col-sm-2">{:__('Done_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-done_count" data-rule="required" class="form-control" name="row[done_count]" type="number" value="{$row.done_count}"
                readonly="readonly">
        </div>
    </div>
    <div class="form-group">
        <label for="c-success_count" class="control-label col-xs-12 col-sm-2">{:__('Success_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-success_count" data-rule="required" class="form-control" name="row[success_count]" type="number" value="{$row.success_count}"
                readonly="readonly">
        </div>
    </div>
    <div class="form-group">
        <label for="c-fail_count" class="control-label col-xs-12 col-sm-2">{:__('Fail_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fail_count" data-rule="required" class="form-control" name="row[fail_count]" type="number" value="{$row.fail_count}"
                readonly="readonly">
        </div>
    </div>
    <!--    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-status" data-rule="required" class="form-control" name="row[status]" type="text" value="{$row.status}">
        </div>
    </div>-->
    <div class="form-group">
        <label for="c-state" class="control-label col-xs-12 col-sm-2">{:__('State')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="stateList" item="vo"}
                <label for="row[state]-{$key}">
                    <input id="row[state]-{$key}" name="row[state]" type="radio" value="{$key}" {in name="key" value="$row.state" }checked{/in}
                        disabled /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8" style='text-align: center;'>
            <button type="submit" class="btn btn-info btn-embossed disabled" style='margin-right: 10px;padding:3px 12px;'>{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed" style='padding:4px 12px;'>{:__('Reset')}</button>
        </div>
    </div>
</form>